<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\EduFeedbackSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Edu Feedbacks';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="edu-feedback-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php  echo $this->render('_search', ['model' => $searchModel]); ?>

    <br>
    <p>
        <?= Html::a('Create Edu Feedback', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
//        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id',
            'user_id',
//            'desc:ntext',
            [
                'attribute' => 'desc',
                'enableSorting' => false,
            ],
//            'contact',
            [
                'attribute' => 'contact',
                'enableSorting' => false,
            ],
            'create_time:datetime',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
